package com.coocaa.ops.admin.v1.plugin;

import com.coocaa.ops.admin.base.controller.MgrBaseController;
import com.coocaa.ops.admin.v1.plugin.model.query.PluginQueryModel;
import com.coocaa.ops.admin.v1.plugin.service.IPluginService;
import com.coocaa.ops.common.core.base.model.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author tangminghong
 * @date 2020-06-28
 */
@RestController
@RequestMapping("/v1/plugin")
public class PluginController extends MgrBaseController {

    @Autowired
    private IPluginService pluginService;

    @RequestMapping("/pageList")
    public String pageList(PluginQueryModel queryModel, HttpServletRequest request) {
        return render2Json(R.ok(pluginService.pageList(queryModel)));
    }
}
